package cn.ichiva.luckysheet.common;

import java.io.IOException;
import java.io.InputStream;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;

public class PropertiesUtil {
    private static Map<String,String> map = new HashMap<>();
    static {
        map.put("init.json","{\"title\":\"TD游戏配置\",\"lang\":\"zh\",\"container\":\"luckysheet\",\"showinfobar\":false,\"data\":[{\"name\":\"设置\",\"index\":\"0\",\"column\":6,\"row\":15,\"celldata\":[{\"r\":\"0\",\"c\":\"0\",\"v\":{\"bg\":\"#cfe2f3\"}},{\"r\":\"0\",\"c\":\"1\",\"v\":{\"bg\":\"#cfe2f3\"}},{\"r\":\"0\",\"c\":\"2\",\"v\":{\"bg\":\"#cfe2f3\"}},{\"r\":\"0\",\"c\":\"3\",\"v\":{\"bg\":\"#cfe2f3\"}},{\"r\":\"0\",\"c\":\"4\",\"v\":null},{\"r\":\"0\",\"c\":\"5\",\"v\":null},{\"r\":\"1\",\"c\":\"0\",\"v\":{\"v\":\"使用说明\",\"bg\":\"#cfe2f3\",\"m\":\"使用说明\",\"ct\":{\"fa\":\"General\",\"t\":\"g\"}}},{\"r\":\"1\",\"c\":\"1\",\"v\":{\"bg\":\"#cfe2f3\"}},{\"r\":\"1\",\"c\":\"2\",\"v\":{\"bg\":\"#cfe2f3\"}},{\"r\":\"1\",\"c\":\"3\",\"v\":{\"bg\":\"#cfe2f3\"}},{\"r\":\"1\",\"c\":\"4\",\"v\":null},{\"r\":\"1\",\"c\":\"5\",\"v\":null},{\"r\":\"2\",\"c\":\"0\",\"v\":{\"bg\":\"#cfe2f3\"}},{\"r\":\"2\",\"c\":\"1\",\"v\":{\"mc\":{\"r\":2,\"c\":1,\"rs\":1,\"cs\":3},\"v\":\"1.有底色的为说明区\",\"m\":\"1.有底色的为说明区\",\"ct\":{\"fa\":\"@\",\"t\":\"s\"},\"bg\":\"#cfe2f3\"}},{\"r\":\"2\",\"c\":\"2\",\"v\":{\"mc\":{\"r\":2,\"c\":1},\"bg\":\"#cfe2f3\"}},{\"r\":\"2\",\"c\":\"3\",\"v\":{\"mc\":{\"r\":2,\"c\":1},\"bg\":\"#cfe2f3\"}},{\"r\":\"2\",\"c\":\"4\",\"v\":null},{\"r\":\"2\",\"c\":\"5\",\"v\":null},{\"r\":\"3\",\"c\":\"0\",\"v\":{\"bg\":\"#cfe2f3\"}},{\"r\":\"3\",\"c\":\"1\",\"v\":{\"v\":\"2.没有底色的部分为数据区\",\"bg\":\"#cfe2f3\",\"m\":\"2.没有底色的部分为数据区\",\"ct\":{\"fa\":\"@\",\"t\":\"s\"},\"mc\":{\"r\":3,\"c\":1,\"rs\":1,\"cs\":3}}},{\"r\":\"3\",\"c\":\"2\",\"v\":{\"mc\":{\"r\":3,\"c\":1}}},{\"r\":\"3\",\"c\":\"3\",\"v\":{\"mc\":{\"r\":3,\"c\":1}}},{\"r\":\"3\",\"c\":\"4\",\"v\":null},{\"r\":\"3\",\"c\":\"5\",\"v\":null},{\"r\":\"4\",\"c\":\"0\",\"v\":{\"bg\":\"#cfe2f3\"}},{\"r\":\"4\",\"c\":\"1\",\"v\":{\"v\":\"3.管理员可修改,游客只能读取 \",\"bg\":\"#cfe2f3\",\"m\":\"3.管理员可修改,游客只能读取 \",\"ct\":{\"fa\":\"@\",\"t\":\"s\"},\"mc\":{\"r\":4,\"c\":1,\"rs\":1,\"cs\":3}}},{\"r\":\"4\",\"c\":\"2\",\"v\":{\"mc\":{\"r\":4,\"c\":1}}},{\"r\":\"4\",\"c\":\"3\",\"v\":{\"mc\":{\"r\":4,\"c\":1}}},{\"r\":\"4\",\"c\":\"4\",\"v\":null},{\"r\":\"4\",\"c\":\"5\",\"v\":null},{\"r\":\"5\",\"c\":\"0\",\"v\":{\"bg\":\"#cfe2f3\"}},{\"r\":\"5\",\"c\":\"1\",\"v\":{\"bg\":\"#cfe2f3\",\"v\":\"4.修改密码会保存到服务器\",\"m\":\"4.修改密码会保存到服务器\",\"ct\":{\"fa\":\"@\",\"t\":\"s\"},\"mc\":{\"r\":5,\"c\":1,\"rs\":1,\"cs\":3}}},{\"r\":\"5\",\"c\":\"2\",\"v\":{\"mc\":{\"r\":5,\"c\":1}}},{\"r\":\"5\",\"c\":\"3\",\"v\":{\"mc\":{\"r\":5,\"c\":1}}},{\"r\":\"5\",\"c\":\"4\",\"v\":null},{\"r\":\"5\",\"c\":\"5\",\"v\":null},{\"r\":\"6\",\"c\":\"0\",\"v\":{\"bg\":\"#cfe2f3\"}},{\"r\":\"6\",\"c\":\"1\",\"v\":{\"bg\":\"#cfe2f3\"}},{\"r\":\"6\",\"c\":\"2\",\"v\":{\"bg\":\"#cfe2f3\"}},{\"r\":\"6\",\"c\":\"3\",\"v\":{\"bg\":\"#cfe2f3\"}},{\"r\":\"6\",\"c\":\"4\",\"v\":null},{\"r\":\"6\",\"c\":\"5\",\"v\":null},{\"r\":\"7\",\"c\":\"0\",\"v\":{\"bg\":\"#cfe2f3\"}},{\"r\":\"7\",\"c\":\"1\",\"v\":{\"bg\":\"#cfe2f3\"}},{\"r\":\"7\",\"c\":\"2\",\"v\":{\"bg\":\"#cfe2f3\"}},{\"r\":\"7\",\"c\":\"3\",\"v\":{\"bg\":\"#cfe2f3\"}},{\"r\":\"7\",\"c\":\"4\",\"v\":null},{\"r\":\"7\",\"c\":\"5\",\"v\":null},{\"r\":\"8\",\"c\":\"0\",\"v\":{\"bg\":\"#9fc5e8\",\"bl\":0,\"it\":0,\"ff\":0,\"fs\":11,\"fc\":\"rgb(51, 51, 51)\",\"ht\":1,\"vt\":1,\"v\":\"管理员\",\"ct\":{\"fa\":\"General\",\"t\":\"g\"},\"m\":\"管理员\"}},{\"r\":\"8\",\"c\":\"1\",\"v\":{\"m\":\"管理员密码\",\"ct\":{\"fa\":\"General\",\"t\":\"g\"},\"v\":\"管理员密码\",\"bg\":\"#9fc5e8\"}},{\"r\":\"8\",\"c\":\"2\",\"v\":{\"m\":\"用户\",\"ct\":{\"fa\":\"General\",\"t\":\"g\"},\"v\":\"用户\",\"bg\":\"#9fc5e8\"}},{\"r\":\"8\",\"c\":\"3\",\"v\":{\"m\":\"用户密码\",\"ct\":{\"fa\":\"General\",\"t\":\"g\"},\"v\":\"用户密码\",\"bg\":\"#9fc5e8\"}},{\"r\":\"8\",\"c\":\"4\",\"v\":null},{\"r\":\"8\",\"c\":\"5\",\"v\":null},{\"r\":\"9\",\"c\":\"0\",\"v\":{\"m\":\"ad\",\"ct\":{\"fa\":\"General\",\"t\":\"g\"},\"v\":\"ad\"}},{\"r\":\"9\",\"c\":\"1\",\"v\":{\"bg\":null,\"bl\":0,\"it\":0,\"ff\":0,\"fs\":11,\"fc\":\"rgb(51, 51, 51)\",\"ht\":1,\"vt\":1,\"ct\":{\"fa\":\"General\",\"t\":\"g\"},\"v\":\"******\",\"m\":\"******\"}},{\"r\":\"9\",\"c\":\"2\",\"v\":{\"m\":\"niuniu\",\"ct\":{\"fa\":\"General\",\"t\":\"g\"},\"v\":\"niuniu\"}},{\"r\":\"9\",\"c\":\"3\",\"v\":{\"bg\":null,\"bl\":0,\"it\":0,\"ff\":0,\"fs\":11,\"fc\":\"rgb(51, 51, 51)\",\"ht\":1,\"vt\":1,\"ct\":{\"fa\":\"General\",\"t\":\"g\"},\"v\":\"******\",\"m\":\"******\"}},{\"r\":\"9\",\"c\":\"4\",\"v\":null},{\"r\":\"9\",\"c\":\"5\",\"v\":null},{\"r\":\"10\",\"c\":\"0\",\"v\":{\"m\":\"admin\",\"ct\":{\"fa\":\"General\",\"t\":\"g\"},\"v\":\"admin\"}},{\"r\":\"10\",\"c\":\"1\",\"v\":{\"bg\":null,\"bl\":0,\"it\":0,\"ff\":0,\"fs\":11,\"fc\":\"rgb(51, 51, 51)\",\"ht\":1,\"vt\":1,\"ct\":{\"fa\":\"General\",\"t\":\"g\"},\"v\":\"******\",\"m\":\"******\"}},{\"r\":\"10\",\"c\":\"2\",\"v\":{\"m\":\"huahua\",\"ct\":{\"fa\":\"General\",\"t\":\"g\"},\"v\":\"huahua\"}},{\"r\":\"10\",\"c\":\"3\",\"v\":{\"bg\":null,\"bl\":0,\"it\":0,\"ff\":0,\"fs\":11,\"fc\":\"rgb(51, 51, 51)\",\"ht\":1,\"vt\":1,\"ct\":{\"fa\":\"General\",\"t\":\"g\"},\"v\":\"******\",\"m\":\"******\"}},{\"r\":\"10\",\"c\":\"4\",\"v\":null},{\"r\":\"10\",\"c\":\"5\",\"v\":null},{\"r\":\"11\",\"c\":\"0\",\"v\":{\"m\":\"root\",\"ct\":{\"fa\":\"General\",\"t\":\"g\"},\"v\":\"root\"}},{\"r\":\"11\",\"c\":\"1\",\"v\":{\"bg\":null,\"bl\":0,\"it\":0,\"ff\":0,\"fs\":11,\"fc\":\"rgb(51, 51, 51)\",\"ht\":1,\"vt\":1,\"ct\":{\"fa\":\"General\",\"t\":\"g\"},\"v\":\"******\",\"m\":\"******\"}},{\"r\":\"11\",\"c\":\"2\",\"v\":{}},{\"r\":\"11\",\"c\":\"3\",\"v\":{\"bg\":null,\"bl\":0,\"it\":0,\"ff\":0,\"fs\":11,\"fc\":\"rgb(51, 51, 51)\",\"ht\":1,\"vt\":1,\"ct\":{\"fa\":\"General\",\"t\":\"g\"}}},{\"r\":\"11\",\"c\":\"4\",\"v\":null},{\"r\":\"11\",\"c\":\"5\",\"v\":null},{\"r\":\"12\",\"c\":\"0\",\"v\":null},{\"r\":\"12\",\"c\":\"1\",\"v\":null},{\"r\":\"12\",\"c\":\"2\",\"v\":null},{\"r\":\"12\",\"c\":\"3\",\"v\":null},{\"r\":\"12\",\"c\":\"4\",\"v\":null},{\"r\":\"12\",\"c\":\"5\",\"v\":null},{\"r\":\"13\",\"c\":\"0\",\"v\":null},{\"r\":\"13\",\"c\":\"1\",\"v\":null},{\"r\":\"13\",\"c\":\"2\",\"v\":null},{\"r\":\"13\",\"c\":\"3\",\"v\":null},{\"r\":\"13\",\"c\":\"4\",\"v\":null},{\"r\":\"13\",\"c\":\"5\",\"v\":null},{\"r\":\"14\",\"c\":\"0\",\"v\":null},{\"r\":\"14\",\"c\":\"1\",\"v\":null},{\"r\":\"14\",\"c\":\"2\",\"v\":null},{\"r\":\"14\",\"c\":\"3\",\"v\":null},{\"r\":\"14\",\"c\":\"4\",\"v\":null},{\"r\":\"14\",\"c\":\"5\",\"v\":null}]}]}");
    }

    public static String read(String name){
        return map.get(name);
    }

    public static byte[] load(String name){
        return map.get(name).getBytes();
    }
}
